package application;

import java.util.ArrayList;
import java.util.List;

public class Transaction {
	
	private int uid;
	private int timeStamp;
	private boolean blocked;
	private boolean aborted;
	private List<String> waitList;
	
	public Transaction(int uid, int timeStamp) {
		super();
		this.uid = uid;
		this.timeStamp = timeStamp;
		blocked = false;
		aborted = false;
		waitList = new ArrayList<String>();
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public List<String> getWaitList() {
		return waitList;
	}

	public void setWaitList(List<String> waitList) {
		this.waitList = waitList;
	}

	public int getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(int timeStamp) {
		this.timeStamp = timeStamp;
	}

	public boolean isBlocked() {
		return blocked;
	}

	public void setBlocked(boolean blocked) {
		this.blocked = blocked;
	}

	public boolean isAborted() {
		return aborted;
	}

	public void setAborted(boolean aborted) {
		this.aborted = aborted;
	}

}
